inspector: Fix a copy-paste error
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 15:36:10 +0000 (15:36 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 16:53:35 +0000 (16:53 +0000)
We were stuffing the layout overlay into the updates_overlay
field, leaving the layout_overlay field unused.

gtk/inspector/visual.c

index 5a21d1d316ee29a04fc1f11b7d222d7518830064..dcdec7d42f5c3a1dd3f7c29267e63e1a98b0d347 100644 (file)
@@ -330,19 +330,19 @@ layout_activate (GtkSwitch          *sw,
 
   if (draw_layout)
     {
-      if (priv->updates_overlay == NULL)
+      if (priv->layout_overlay == NULL)
         {
-          priv->updates_overlay = gtk_layout_overlay_new ();
-          gtk_inspector_window_add_overlay (iw, priv->updates_overlay);
-          g_object_unref (priv->updates_overlay);
+          priv->layout_overlay = gtk_layout_overlay_new ();
+          gtk_inspector_window_add_overlay (iw, priv->layout_overlay);
+          g_object_unref (priv->layout_overlay);
         }
     }
   else
     {
-      if (priv->updates_overlay != NULL)
+      if (priv->layout_overlay != NULL)
         {
-          gtk_inspector_window_remove_overlay (iw, priv->updates_overlay);
-          priv->updates_overlay = NULL;
+          gtk_inspector_window_remove_overlay (iw, priv->layout_overlay);
+          priv->layout_overlay = NULL;
         }
     }